package com.sport.facilities.booking.system.model;


import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Booking implements Serializable {
	private static final long serialVersionUID = 1L;
	private String date;
	private String time;
	private String centre;
	private String court;
	private String activity;
	private String id;
	private String price;
	private String userid;
	private String bktype;
	private int alarmId;
	//private String datetime;


	public Booking(){
		
	}
	public Booking(String id, String activity, String bktype, String centre, String court, String date, String time, int alarmId){
		this.id = id;
		this.activity = activity;
		this.bktype = bktype;
		this.centre = centre;
		this.court = court;
		this.date = date;
		this.time = time;
		this.alarmId = alarmId;
		
	}
	public Booking(String activity, String bktype, String centre, String court, String date, String time, int alarmId){
		
		this.activity = activity;
		this.bktype = bktype;
		this.centre = centre;
		this.court = court;
		this.date = date;
		this.time = time;
		this.alarmId = alarmId;
		
	}
	
	 
	public int getalarmId() {
		return alarmId;
	}

	public void setalarmId(int alarmId) {
		this.alarmId = alarmId;
	}

	
	public String toDisplayString() {

		//Date date = new Date();
		// SimpleDateFormat simpleDateformat=new SimpleDateFormat("yyyy");
		
		 
		// date.toString().replaceAll("-"+simpleDateformat.format(date), "");
		 
		return bktype + " " + activity + " " + date;
	}
	public String toString() {
		return "[DT:" + date + ",T:" + time + ",Centre:" + centre + ",CRT:"
				+ court + ",ACT:" + activity + ",PRI:" + price + ",USERID:"
				+ userid + ",ID:" + id + "]";
	}

	//public String getDateTime() {
	//	return datetime;
	//}

	//public void setDateTime(String datetime) {
	//	this.datetime = datetime;
	//}
	
	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getCentre() {
		return centre;
	}

	public void setCentre(String centre) {
		this.centre = centre;
	}

	public String getCourt() {
		return court;
	}

	public void setCourt(String court) {
		this.court = court;
	}

	public String getActivity() {
		return activity;
	}

	public void setActivity(String activity) {
		this.activity = activity;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserId() {
		return userid;
	}

	public void setUserId(String userid) {
		this.userid = userid;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}
	

	public String getBkType() {
		return bktype;
	}

	public void setBkType(String bktype) {
		this.bktype = bktype;
	}

}

